import React, {memo} from 'react';
import {BrowserRouter} from "react-router-dom";
import {renderRoutes} from "react-router-config";
import {Provider} from "react-redux";
import store from "./store";
import routes from "@/router";

export default memo(function App() {
  return (
    <Provider store={store}>
      <BrowserRouter>
          {renderRoutes(routes)}
      </BrowserRouter>
    </Provider>
  )
})